import request from '@/utils/request'
//根据员工id查机构以及所以下属机构
export function info() {
  return request({
    url: '/pd-auth/core_org/QueryAllCoreallShuZhi/' ,
    method: 'post',
  })
}

/**
 * 根据机构id查范围
 */

export function queryByOrgId(orgId) {
  return request({
    url: '/pd-base/agencyScope/queryByOrgId/' +orgId,
    method: 'get',
    params:{orgId: orgId}
  })
}

/**
 * 如果有范围就是修改，反之添加
 */
export function updateAgency(agencyScope) {
  return request({
    url: '/pd-base/agencyScope/updateAgency/',
    method: 'post',
   data:agencyScope
  })
}

